<template>
    <view v-if="showNavbar">
        <wd-navbar @click-left="$util.back" :fixed="fixed" :placeholder="fixed" :title="title" :bordered="border" left-arrow safeAreaInsetTop>
        </wd-navbar>
    </view>
</template>
<script setup lang="ts">
import { onMounted } from 'vue'
import { $util } from '@/util/common'
import { useAppStore } from '@/stores/modules/app'
const showNavbar = useAppStore().showNavbar
const props = defineProps({
    title: {
        type: String,
        default: '未来办公',
    },

    border: {
        type: Boolean,
        default: true,
    },
    fixed: {
        type: Boolean,
        default: true,
    },
})

onMounted(() => {
    uni.setNavigationBarTitle({
        title: props.title,
    })
})
</script>
